<%-- 
    Document   : sanPhamForm
    Created on : Oct 20, 2011, 12:51:44 AM
    Author     : nhlvu07db373
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>   
    <!--body content-->
    <div id="capnhatsp" class="capnhatsp">  
        <form action="<c:url value="submitsanpham.html"/>" method="POST">                   
            <div class="small-box-whitesp">
                <spring:nestedPath path="sanPham">
                    <div>
                        <spring:bind path="maSanPham">
                            <input type="hidden" name="${status.expression}" value="${status.value}"/>
                        </spring:bind>
                    </div>
                    <div>
                        <label>Tên sản phẩm:</label>
                        <spring:bind path="tenSanPham">
                            <input type="text" name="${status.expression}" value="${status.value}" />
                        </spring:bind>
                    </div> 
                    <div>
                        <label>Loại sản phẩm:</label>
                        <spring:bind path="maLoaiSanPham">
                            <select name="${status.expression}">
                                <option value="" selected >-->Loại sản phẩm<--</option>
                                <c:forEach items="${lstLSP}" var="lsp"  >
                                    <option value="${lsp.maLoaiSanPham}" <c:if test="${status.value eq lsp.maLoaiSanPham }">selected</c:if> >${lsp.tenLoaiSanPham}</option>
                                </c:forEach>
                            </select>
                        </spring:bind>
                    </div>
                    <div >
                        <label>Thông tin giới thiệu:</label>
                        <spring:bind path="gioiThieu">
                            <input type="textarea" name="${status.expression}" value="${status.value}"/>
                        </spring:bind> 
                    </div> 
                    <div>   
                        <label>Điểm nổi bật:</label>
                        <spring:bind path="diemNoiBat">
                            <input type="textarea" name="${status.expression}" value="${status.value}"/>
                        </spring:bind>  
                    </div> 
                    <div>   
                        <label>Địa chỉ: </label>
                        <spring:bind path="diaChi">
                            <input type="textarea" name="${status.expression}" value="${status.value}"/>
                        </spring:bind>  
                    </div> 
                    <div>
                        <label>Giá bán:</label>
                        <spring:bind path="giaBan">
                            <input type="text" name="${status.expression}" value="${status.value}" onkeypress="return isNumeric(event)"/>
                        </spring:bind>
                    </div>                
                    <div><input type="submit" value="Lưu"/></div>   
                </spring:nestedPath>
            </div>
        </form>
    </div>
</html>